package com.zzxy.controller;

import com.zzxy.entity.Commen;
import com.zzxy.service.CommenService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * (Commen)表控制层
 *
 * @author makejava
 * @since 2023-11-28 10:50:16
 */
@RestController
@RequestMapping("commen")
public class CommenController {
    /**
     * 服务对象
     */
    @Resource
    private CommenService commenService;

    /**
     * 通过主键查询单条数据
     *
     * @param id 主键
     * @return 单条数据
     */
    @GetMapping("selectOne")
    public Commen selectOne(Integer id) {
        return this.commenService.queryById(id);
    }

}